﻿<#include "/admin/_inc/_head.html"/>
<#include "/admin/_inc/_layout.html"/>
<!DOCTYPE html>
<html>
<head>
    <@head title="主页"/>
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">

<@layout>
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <span><img alt="image" class="img-circle" src="${account.avatar}"
                                       onerror="this.src='/assets/img/avatar-default-S.gif'"/></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <#--<span class="block m-t-xs"><strong class="font-bold">${account.name}</strong></span>-->
                                    <span class="text-muted text-xs block"><#if account.nickName==''>${account.name}<#else>${account.nickName}</#if><b
                                            class="caret"></b></span>
                                </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">

                                <li>
                                    <a class="J_menuItem" href="${ctx_admin}/account/change-password">修改密码</a>
                                </li>
                                <li class="divider"></li>
                                <li><a href="/logout">安全退出</a>
                                </li>
                            </ul>
                        </div>
                        <div class="logo-element">H+
                        </div>
                    </li>

                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary "><i class="fa fa-bars"></i> </a>

                    </div>
                    <ul class="nav navbar-top-links navbar-right">

                        <li>
                            <a href="/logout">
                                <i class="fa fa-sign-out"></i> 退出
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab" data-id="index_v1.html">首页</a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>

                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>
            <#--<a class="roll-nav roll-right "><i class="fa fa-refresh"></i> &nbsp;刷新</a>-->
                <a class="roll-nav roll-right J_tabExit"><i class="fa fa-refresh"></i> 刷新</a>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="/admin/home" frameborder="0"
                        data-id="/admin/home" seamless></iframe>
            </div>
            <div class="footer">
            <#--<div class="pull-right">&copy; 2014-2015 <a href="" target="_blank">zihan's blog</a>
                </div>-->
            </div>
        </div>
        <!--右侧部分结束-->


    </div>
</@layout>
<script src="/assets/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/assets/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

<script src="/assets/js/hplus.min.js?v=4.1.0"></script>
<script type="text/javascript" src="/assets/js/contabs.min.js"></script>
<script src="/assets/js/plugins/pace/pace.min.js"></script>
<script src="/assets/js/jquery.treemenu.js"></script>
<script type="text/javascript">
    $(function () {
        $('.J_tabExit').click(function () {
            var tab = $('.J_menuTabs .J_menuTab.active');
            var iframe = $('.J_iframe[data-id="' + tab.data("id") + '"]');
            iframe.attr("src", tab.data("id"));
        });

        $('#side-menu').treemenu({
            idColumn: 'resourceId',
            nameColumn:'resourceName',
            parentColumn: 'perentResourceId',
            sortColumn: "resourceOrder",
            type: "GET",
            url: global.adminPath + '/resource/authtree'
        });


    });

</script>
</body>


</html>
